check a number is prime or not